Transport stream packets with time stamp generation by medium access control

ABSTRACT

Provided is a method of transmitting transport stream packets from a terminal connected to a network including generating a time stamp with reference to time information managed in synchronization with other terminals by a medium access control (MAC) layer in order to control medium use in the network; processing the transport stream packets by using the time stamp; and transmitting the processed transport stream packets.

CROSS-REFERENCE TO RELATED PATENT APPLICATION

This application is a continuation application of U.S. application Ser. No. 11/730,270, filed on Mar. 30, 2007, in the U.S. Patent and Trademark Office, which claims the benefit of Korean Patent Application No. 10-2006-0092457, filed on Sep. 22, 2006, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein by reference in their entireties.

BACKGROUND OF THE INVENTION

1. Field of the Invention

Methods and apparatuses consistent with the present invention relate to a transport stream, and more particularly, to processing and transmitting transport stream packets, and processing the transmitted transport stream packets.

2. Description of the Related Art

In order to transmit audio-visual (AV) data, a transport stream (TS) format is generally used. When the AV data is received or transmitted, time synchronization between the transmitting and receiving terminals is very important. Therefore, the transmitting terminal and the receiving terminal transmit and receive packets including time information, and the terminals attempt synchronization by using various algorithms.

FIG. 1 is a conceptual view for explaining a method of transmitting transport stream packets according to the related art.

The apparatus on the left contains a TS generator, which is a source for providing transport stream packets and may be a storage medium for storing image data, a streaming application, or a Moving Picture Experts Group (MPEG) encoder. The apparatus on the right contains a TS consumer, which consumes the transport stream packets and may be a display device, a multiplexer/demultiplexer (MUX/DEMUX), or a MPEG decoder.

The transmitting terminal transmits the transport stream packets to the receiving terminal through a network interface according to the network type such as Ethernet or wireless LAN. The TS generator of the transmitting terminal and the TS consumer of the receiving terminal control the transmission using information included in the transport stream packets, but the network interface does not participate in this process. More specifically, a medium access control (MAC) layer or a physical layer does not determine whether or not data transmitted from an upper layer is a transport stream packet, and thus processes all data by the same method, and does not perform control manipulation for the transport stream packet.

Therefore, according to the related art, in the process of transmitting the transport stream packets through a network, latency and jitter may occur, preventing the receiving terminal from outputting images precisely. In addition, to prevent the latency and jitter, the TS generator of the transmitting terminal and the TS consumer of the receiving terminal have to include additional modules in an application layer to perform precise synchronization on the transport stream packets. The transmitting and receiving terminals also have to exchange packets for synchronization. Accordingly, implementation is excessively complex.

SUMMARY OF THE INVENTION

An exemplary embodiment of the present invention provides a method and apparatus for processing and transmitting transport stream packets in a medium access control (MAC) layer of a network terminal.

According to an aspect of the present invention, there is provided a method of transmitting transport stream packets from a terminal connected to a network, the method including: generating a time stamp with reference to time information managed in synchronization with other terminals by the MAC layer in order to control medium use in the network; processing the transport stream packets by using the time stamp; and transmitting the processed transport stream packets.

The network may be a wireless local area network (WLAN). In this case, the time information is a value which is set with reference to a time stamp field of a beacon frame.

The network may be a wireless personal area network (WPAN). In this case, the time information is a value which is set with reference to a piconet synchronization parameters field of a beacon frame.

The processing may include: generating a packet group by grouping a plurality of the transport stream packets; and generating a MAC protocol data unit (MPDU) by adding the time stamp to the packet group.

The processing may further include recording information indicating that the transport stream packets are included in the MPDU.

In the transmitting, when a transmission error occurs, retransmission may be performed based on a predetermined set value not on a retry limit set by the network.

In the transmitting, when a transmission error occurs, retransmission may be performed until all the transport stream packets which are transmitted in advance and stored in a buffer of the other terminal which receives the transport stream packets are consumed.

According to another aspect of the present invention, there is provided a computer-readable medium having embodied thereon a computer program for executing the method of transmitting the transport stream packets.

According to another aspect of the present invention, there is provided an apparatus for transmitting transport stream packets from a terminal connected to a network, the apparatus including: a time stamp generator generating a time stamp with reference to time information managed in synchronization with other terminals by the MAC layer in order to control medium use in the network; a packet processor processing the transport stream packets by using the time stamp; and a transmitter transmitting the processed transport stream packets.

According to another aspect of the present invention, there is provided a method of processing transport stream packets in a MAC layer of a terminal connected to a network, the method including: extracting a time stamp from a frame received through a network; and outputting the transport stream packets included in the frame with reference to the extracted time stamp and time information managed in synchronization with other terminals by a MAC (medium access control) layer in order to control medium use in the network.

In the outputting, a plurality of the transport stream packets may be output by using a single time stamp according to a predetermined rule.

According to another aspect of the present invention, there is provided a computer-readable medium having embodied thereon a computer program for executing the method of processing the transport stream packets.

According to another aspect of the present invention, there is provided an apparatus for processing transport stream packets in a MAC layer of a terminal connected to a network, the apparatus including: a time stamp extracting unit extracting a time stamp from a frame received through the network; and an outputting unit outputting the transport stream packets included in the frame with reference to the extracted time stamp and time information managed in synchronization with other terminals by a MAC (medium access control) layer in order to control medium use in the network.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

FIG. 1 is a conceptual view for explaining a method of transmitting transport stream packets according to a related art;

FIG. 2 is a flowchart showing operations for transmitting transport stream packets according to an exemplary embodiment of the present invention;

FIG. 3 shows groups of transport stream packets to which time stamps are added according to an exemplary embodiment of the present invention;

FIG. 4 is a flowchart showing operations for processing transmitted transport stream packets by a receiving apparatus according to an exemplary embodiment of the present invention; and

FIG. 5 is block diagram showing the structures of an apparatus for transmitting transport stream packets and an apparatus for receiving and processing the transport stream packets according to an exemplary embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Exemplary embodiments of the present invention will now be described in detail with reference to the attached drawings.

FIG. 2 is a flowchart showing operations for transmitting transport stream packets from a transmitting terminal according to an exemplary embodiment of the present invention;

In operation 210, a medium access control (MAC) layer of a transmitting terminal generates a time stamp for transport stream packets transmitted from an upper layer using time information that is managed by the MAC layer. The time information managed by the MAC layer is managed in synchronization with other terminals in a network in order to control medium use in the network by the MAC layer. Therefore, the environment applied to the present invention presupposes that MAC layers of the transmitting terminal and a receiving terminal support a time synchronization function.

For example, networks using the IEEE 802.11 or IEEE 802.15.3 standards or the like provide this function. In a wireless local area network (WLAN) using IEEE 802.11, the terminals perform the time synchronization in the MAC layers with reference to a timestamp field of a beacon frame. In a wireless personal area network (WPAN) using IEEE 802.15.3, the terminals perform the time synchronization in the MAC layers with reference to piconet synchronization parameters field of a beacon frame.

The MAC layer provides the time information to the upper layer by using a service access point (SAP).

In operation 220, the MAC layer forms a packet group by grouping the transport stream packets. The packet group is a group of a plurality of transport stream packets.

In operation 230, the MAC layer generates a MAC protocol data unit (MPDU) by adding a time stamp to the group. As described above, a plurality of transport stream packets are combined with a single time stamp in order to reduce network traffic. However, to do so, the MAC layers of the transmitting and receiving terminals have to know in advance a rule for outputting transport stream packets included in a corresponding group to an upper layer by using a single time stamp. An example of this rule is that when a time stamp is added to the front of a packet group, the time stamp represents the output time of a transport stream packet at the front of the packet group, and the next transport stream packets are output at predetermined intervals after the time represented by the time stamp.

In operation 240, a transport stream flag (TS flag) is represented in the generated MPDU. The TS flag is an identifier indicating that the transport stream packet is included in a payload of the MPDU. The MAC layer of the receiving terminal identifies the TS flag, extracts the time stamp from the MPDU, and outputs the transport stream packets to the upper layer with reference to the time information of the MAC layer.

The TS flag is represented by “type” information and/or “subtype” information recorded in a frame control field of an MPDU header. The TS flag may be represented by sequentially recording or spreading out identifiers which can be identified by using a hash function or various functions in a “frame body” of the MPDU. In addition, the TS flag may be represented by using a “reserved” field or a “service” field of a physical layer convergence procedure (PLCP) protocol data unit (PPDU).

In operation 250, a data frame including the MPDU is transmitted.

In operation 260, it is determined whether or not the transmission of the data frame has succeeded. This can be checked by using an acknowledgement (ACK) frame.

When the transmission fails, in operation 270, it is determined whether or not the transmission failed data frame will be retransmitted. In general, in a wireless network, when the transmission of the data frame fails, the terminal determines a retry limit in advance. However, according to the exemplary embodiment of the present invention, when the data frame includes the transport stream packet, the MAC layer of the transmitting terminal performs a different retransmission algorithm from that used for a general data frame. For example, the transmitting terminal may repeatedly retransmit the data frame until all the transport stream packets stored in a buffer of the receiving terminal are consumed. If the retransmission succeeds before all the transport stream packets in the buffer of the receiving terminal are consumed, the receiving terminal can generate image data without pops or clicks. In addition, a method of setting the retry limit for data frames including the transport stream packet differently from the retry limit for general frames, or a method of repeating the retransmission for a predetermined time can be used.

In the current exemplary embodiment, a plurality of transport stream packets is combined with a single time stamp. However, this operation is not necessarily needed in applications of the present invention, and a time stamp may be added to each transport stream packet. In this case, the aspect of the present invention in which the transmitting terminal generates the time stamp by using the time information of the MAC layer is not changed.

FIG. 3 shows groups of transport stream packets to which time stamps are added according to an exemplary embodiment of the present invention.

As shown in FIG. 3, the time stamp can be included at the front of the group of the transport stream packets, at the back thereof, or between the transport stream packets.

However, as described above, the MAC layers of the transmitting and receiving terminals have to know in advance the rule for outputting the transport stream packets included in a group to an upper layer by using a single time stamp. An example of such a rule is that, in a third case (where the time stamp is included between the transport stream packets), a transport stream packet on the left is output at the time represented by the time stamp, and a transport stream packet on the right is output 2 μs later than the time represented by the time stamp.

FIG. 4 is a flowchart showing operations for processing transport stream packets by the receiving terminal according to an exemplary embodiment of the present invention.

In operation 410, the receiving terminal receives the data frame. In operation 420, it is determined whether or not a transport stream packet is included in the received data frame. The determination is performed by identifying the TS flag. Therefore, the receiving terminal determines whether or not the TS flag exists using a method such as referring to “type” information and/or “subtype” information recorded in the frame control field of the MPDU header or perceiving a pattern recorded in the “frame body” of the MPDU, or the like.

When the TS flag is not included in the data frame, in operation 440, the receiving terminal performs a general data frame processing process.

When the TS frame is included in the data frame, in operation 430, the MAC layer of the receiving terminal extracts the time stamp.

In operation 450, the MAC layer of the receiving terminal transmits the transport stream packets to the upper layer with reference to the extracted time stamp and the time information managed by the MAC layer.

FIG. 5 is block diagram showing the structures of an apparatus for transmitting transport stream packets and an apparatus for receiving and processing the transport stream packets according to an exemplary embodiment of the present invention.

As shown in FIG. 5, the transmitting terminal 500 includes a TS packet source 510, a time stamp generator 520, a packet processor 530, and a transmitter 540. The receiving terminal 550 includes a receiver 551, a determining unit 552, a time stamp extracting unit 553, an outputting unit 554, a TS packet processor 555, and a frame processor 556.

In the transmitting terminal 500, the TS packet source 510 provides transport stream packets and generally may be a Moving Picture Experts Group (MPEG) encoder or a storage device.

The time stamp generator 520 generates time stamps based on the times when the transport stream packets from the TS packet source 510 arrive. Here, the time stamp generator 520 refers to the time information managed by the MAC layer. In addition, the transmitter 540 is a module operating in the MAC layer. Therefore, the transmitter 540 provides the time information to the time stamp generator 520.

The packet processor 530 generates an MPDU by adding the time stamps to the transport stream packets. More specifically, packet groups may be generated by grouping a plurality of transport stream packets, and the MPDU may be generated by adding the time stamps to the packet groups. In addition, the packet processor 530 records a TS flag in the MPDU. According to an implemented example, the TS flag may be represented using a “reserved” field or a “service” field of a PPDU. In this case, the packet processor 530 may use a SAP provided by a physical layer.

The transmitter 540 transmits a data frame including the MPDU output from the packet processor 530 to a network 560. Here, when a transmission error occurs, the transmitter 540 does not use a retry limit determined by the network 560, which is used for the general data frame, but performs transmission according to a predetermined algorithm.

More specifically, the transmitter 540 may repeatedly retransmit the data frame until all the transport stream packets which are transmitted to the receiving terminal in advance and stored in the buffer of the receiving terminal, are consumed.

Next, in the receiving terminal 550, the receiver 551 receives the data frame through the network 560. The determining unit 552 determines whether or not the data frame received by the receiver 551 includes the transport stream packet. The determination is performed by identifying the TS flag included in the data frame. According to the result of the determination by the determining unit 552, when the TS flag is not included in the data frame, the frame processor 556 performs the general data frame processing process.

When it is determined that the TS flag is included in the data frame, the time stamp extracting unit 553 extracts the time stamp from the MPDU.

The outputting unit 554 outputs the transport stream packets to the TS packet processor 555 based on the time stamps extracted by the time stamp extracting unit 553. The TS packet processor 555 consumes the transport stream packets and may be an MPEG decoder or a display device. Here, the outputting unit 554 outputs the transport stream packets with reference to the time information managed by the MAC layer, and the receiver 551 corresponds to the MAC layer. Therefore, the receiver 551 can provide the time information to the outputting unit 554.

Accordingly, the time information used to generate the time stamp for the transport stream packet is provided from the MAC layer of the terminal connected to the network. Therefore, there is no need to transmit or receive additional packets in order to precisely transmit the transport stream packets between the receiving and transmitting terminals.

In addition, adding a single time stamp to a plurality of transport stream packets reduces network traffic.

Also, the transport stream packets are controlled based on time in the MAC layer, so that time characteristics of the transport stream packets in network can be preserved. Therefore, performance deterioration caused from latency or jitter decreases.

The exemplary embodiments of the present invention can be written as computer programs and can be implemented in general-use digital computers that execute the programs using a computer readable recording medium. Examples of the computer readable recording medium include magnetic storage media (e.g. ROM, floppy disks, hard disks, etc.), optical recording media (e.g. CD-ROMs, or DVDs), and storage media such as carrier waves (e.g. transmission through the Internet).

While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. The exemplary embodiments should be considered in a descriptive sense only and not for purposes of limitation. Therefore, the scope of the invention is defined not by the detailed description of the invention but by the appended claims, and all differences within the scope will be construed as being included in the present invention. 

What is claimed is:
 1. A method of transmitting transport stream packets from a terminal connected to a network, the method comprising: generating a time stamp with reference to time information managed in synchronization with other terminals by a medium access control (MAC) layer in order to control medium use in the network; processing the transport stream packets by using the time stamp; and transmitting the processed transport stream packets.
 2. The method of claim 1, wherein the network is a wireless local area network (WLAN), and wherein the time information is a value which is set with reference to a time stamp field of a beacon frame.
 3. The method of claim 1, wherein the network is a wireless personal area network (WPAN), and wherein the time information is a value which is set with reference to a piconet synchronization parameters field of a beacon frame.
 4. The method of claim 1, wherein the processing comprises: generating a packet group by grouping a plurality of the transport stream packets; and generating an MAC protocol data unit (MPDU) by adding the time stamp to the packet group.
 5. The method of claim 4, wherein the processing further comprises recording information indicating that the plurality of transport stream packets are included in the MPDU, in a recording.
 6. The method of claim 5, wherein in the recording, information indicating that the plurality of transport stream packets are included in a payload of the MPDU is recorded by using type information or subtype information recorded in a frame control field of an MPDU header.
 7. The method of claim 1, wherein in the transmitting, when a transmission error occurs, retransmission is performed based on a predetermined set value and not based on a retry limit set by the network.
 8. The method of claim 1, wherein in the transmitting, when a transmission error occurs, retransmission is performed until all transport stream packets which are transmitted in advance and stored in a buffer of the other terminal which receives the transport stream packets, are consumed.
 9. A computer-readable medium having embodied thereon a computer program for executing the method of claim
 1. 10. An apparatus for transmitting transport stream packets from a terminal connected to a network, the apparatus comprising: a time stamp generator which generates a time stamp with reference to time information managed in synchronization with other terminals by a medium access control (MAC) layer in order to control medium use in the network; a packet processor which processes the transport stream packets by using the time stamp; and a transmitter which transmits the processed transport stream packets.
 11. The apparatus of claim 10, wherein the network is a wireless local area network (WLAN), and wherein the time information is a value which is set based on a time stamp field of a beacon frame.
 12. The apparatus of claim 10, wherein the network is a wireless personal area network (WPAN), and wherein the time information is a value which is set based on a piconet synchronization parameters field of a beacon frame.
 13. The apparatus of claim 10, wherein the packet processor generates a packet group by grouping a plurality of the transport stream packets and generates a MAC protocol data unit (MPDU) by adding the time stamp to the generated packet group.
 14. The apparatus of claim 13, wherein the packet processor records information indicating that the plurality of transport stream packets are included in the MPDU.
 15. The apparatus of claim 14, wherein the packet processor records information indicating that the plurality of transport stream packets are included in a payload of the MPDU by using type information or subtype information recorded in a frame control field of an MPDU header.
 16. The apparatus of claim 10, wherein when a transmission error occurs, the transmitter performs retransmission based on a predetermined set value and not based on a retry limit set by the network.
 17. The apparatus of claim 10, wherein when a transmission error occurs, the transmitter performs retransmission until all the transport stream packets which are transmitted in advance and stored in a buffer of the other terminal which receives the transport stream packets, are consumed.
 18. A method of processing transport stream packets in a medium access control (MAC) layer of a terminal connected to a network, comprising: extracting a time stamp from a frame received through the network; and outputting the transport stream packets included in the frame, with reference to the extracted time stamp and time information managed in synchronization with other terminals by a MAC layer in order to control medium use in the network.
 19. The method of claim 18, wherein in the outputting, a plurality of the transport stream packets are output by using a single time stamp according to a predetermined rule.
 20. The method of claim 18, further comprising determining whether or not the transport stream packets are included in a payload of a MAC protocol data unit (MPDU) by using type information or subtype information recorded in a frame control field of an MPDU header of the frame, wherein the extracting and outputting operations are performed on the frame including the transport stream packets according to a result of the determining.
 21. A computer-readable medium having embodied thereon a computer program for executing the method of claim
 18. 22. An apparatus for processing transport stream packets in a medium access control (MAC) layer of a terminal connected to a network, the apparatus comprising: a time stamp extracting unit which extracts a time stamp from a frame received through the network; and an outputting unit which outputs the transport stream packets included in the frame with reference to the extracted time stamp and time information managed in synchronization with other terminals by a MAC layer in order to control medium use in the network.
 23. The apparatus of claim 22, wherein the outputting unit outputs a plurality of the transport stream packets by using a single time stamp according to a predetermined rule.
 24. The apparatus of claim 22, further comprising a determining unit determining whether or not the transport stream packets are included in a payload of a MAC protocol data unit (MPDU) by using type information or subtype information recorded in a frame control field of an MPDU header of the frame. 